home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Borland
/
Borland C++ V5.02
/
SAMPLE.PAK
/
DLCTL.CPP
next >
Wrap
C/C++ Source or Header
|
1997-05-06
|
780b
|
29 lines
//----------------------------------------------------------------------------
// ObjectWindows - (C) Copyright 1991, 1994 by Borland International
// Tutorial application -- delphictl.cpp
//----------------------------------------------------------------------------
#include <owl/pch.h>
#include <owl/applicat.h>
#include <owl/framewin.h>
#include "dlwrap.h"
#include "testdll.h"
class TDelphiCtlApp : public TApplication {
public:
TDelphiCtlApp() : TApplication() {}
void InitMainWindow()
{
SetMainWindow(new TFrameWindow(0, "Sample OWL Window containing a Delphi control",
new TDelphiFormWrapper(MakeTestForm, 0, 0, 0))
);
}
};
int
OwlMain(int /*argc*/, char* /*argv*/ [])
{
return TDelphiCtlApp().Run();
}